;;; mod-scala.el --- 

;; Copyright (C) 2013  gww

;; Author: gww <gww@192.168.0.102>
;; Keywords: lisp

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:

;; 

;;; Code:

;;scala-mode
;;(load-plugin "scala-mode")
;;(require 'scala-mode-auto)

;;scala-mode2
(load-plugin "scala-mode2")
(require 'scala-mode2)

(add-to-list 'auto-mode-alist
			 '("\\.scala" . scala-mode2)
			 '("\\.sbt\\'" . scala-mode2))

;; Load the ensime lisp code...
;;(add-to-list 'load-path "ENSIME_ROOT/elisp/")
(load-path-ext "SDKS" "ensime_2.10.0-RC3-0.9.8.2/elisp")
(require 'ensime)

;; This step causes the ensime-mode to be started whenever
;; scala-mode is started for a buffer. You may have to customize this step
;; if you're not using the standard scala mode.
(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)

(provide 'mod-scala)
;;; mod-scala.el ends here

